package main

import (
	"barrage-go/common"
	"barrage-go/controller"
	"barrage-go/db"
	"log"
	"net/http"
)

func init() {
	common.InitConfig()
	db.InitMySql()
	db.InitRedis()
	log.Println("-----------------所有配置初始化完毕-----------------")
}

func main() {
	// ceshi
	http.HandleFunc("/go", controller.SocketHandler)
	log.Fatal(http.ListenAndServe(":8888", nil))
}
